#!/bin/bash

tempfile=`mktemp tedsign.XXXXXX`
exec 3>$tempfile

echo "this is a temp file $tempfile"
echo "this is the secod line" >&3
echo "this is last line" >&3
exec 3>$- 
echo "deno creating temp file. the contents are:" 
cat $tempfile
rm -f $tempfile 2> /dev/null


tempdir=`mktemp -d dir.XXXXXX`
cd $tempdir
tempfile1=`mktemp temp.XXXXXX`
tempfile2=`mktemp temp.XXXXXX`
exec 7>$tempfile1
exec 8>$tempfile2
echo "sending data to directory $tempdir"
echo "This is a test line of data for $tempfile1" >&7
echo "This is a test line of data for $tempfile2" >&8
